//
//  RBPwdItem.h
//  4-24-1 手势密码demo
//
//  Created by 华杨科技 on 2017/4/24.
//  Copyright © 2017年 饶波. All rights reserved.
//
//  手势密码的密码：圆点

#import <UIKit/UIKit.h>
typedef NS_ENUM(NSInteger, SelectStyleModel){
    wrongStyle,
    selectStyle,
    normalStyle
};

@interface RBPwdItem : UIView
@property(nonatomic, assign) SelectStyleModel styleModel;

@property (nonatomic, strong) CAShapeLayer *outterLayer;   // 外圆
@property (nonatomic, strong) CAShapeLayer *innerLayer;    // 内圆
@property (nonatomic, strong) CAShapeLayer *triangleLayer; // 绘制手势密码的箭头的方向

@property (nonatomic, assign) BOOL isSelect; // 记录是否选中状态


/**
 判断画线时小三角形的方向
 (x1,y1)  <---- (x2,y2)
 @param isHidden 是否隐藏
 */
- (void)judgeTriangleDirectionWithx1:(CGFloat)x1 y1:(CGFloat)y1 x2:(CGFloat)x2 y2:(CGFloat)y2 isHidden:(BOOL)isHidden;

@end
